package com.shiro.service.impl;

import com.shiro.mapper.UserMapper;
import com.shiro.pojo.User;
import com.shiro.service.UserService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.annotation.Resource;
@EnableTransactionManagement
@Component
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User queryUserByName(String name) {
        return userMapper.queryUserByName(name);
    }
}
